home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 97
/
FreelogNo97-MaiJuin2010.iso
/
Graphisme
/
7capture
/
7capture-setup.exe
/
{app}
/
7capture.chm
/
jsrelative.js
< prev
next >
Wrap
Text File
|
2010-02-20
|
278b
|
13 lines
function relativelnk(fn) {
var X, Y, sl, a, ra, link;
ra = /:/;
a = location.href.search(ra);
if (a == 2)
X = 14;
else
X = 7;
sl = "\\";
Y = location.href.lastIndexOf(sl) + 1;
link = "file:///" + location.href.substring(X, Y) + "files/" + fn;
location.href = link;
}